package com.zlb.knifeprovider;

import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.autoconfigure.jdbc.DataSourceAutoConfiguration;
import org.springframework.cloud.client.discovery.EnableDiscoveryClient;
import org.springframework.context.annotation.ComponentScan;

@SpringBootApplication
@EnableDiscoveryClient
// 扫描所有包内的component，否则IDEA解析不到common模块的组件，会报错，虽然不影响使用
@ComponentScan(basePackages={"com.zlb"})
// 扫描mapper接口
@MapperScan(basePackages={"com.zlb.knifecommon.mapper"})
public class KnifeProviderApplication {

    public static void main(String[] args) {
        SpringApplication.run(KnifeProviderApplication.class, args);
    }

}
